package com.ganinfo.common.tree;

import java.io.Serializable;
import java.util.List;
/**
 * 树结构实体类
 * @author start
 *
 */
public class TreeNode implements Serializable {

	private static final long serialVersionUID = 1L;
	/**
	 * 节点编码
	 */
	private String id;
	/**
	 * 节点名称
	 */
	private String text;
	/**
	 * 节点编码
	 */
	private String value;
	/**
	 * 是否显示check复选框   显示：true  不显示：false
	 */
	private Boolean showcheck; //给true
	private Boolean complete; //给true
	/**
	 * 当前节点下包含子节点时为true ，否则(当前节点为叶子节点)为false
	 */
	private Boolean isexpand; //第一级是true   剩下为false
	/**
	 * 节点的复选框选中时为1，未选中为0，初始化时默认为0
	 */
	private int checkstate;//都是0
	
	private Boolean hasChildren;//是否有子节点
	private List<TreeNode> ChildNodes;
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getText() {
		return text;
	}
	public void setText(String text) {
		this.text = text;
	}
	public String getValue() {
		return value;
	}
	public void setValue(String value) {
		this.value = value;
	}
	public Boolean getShowcheck() {
		return showcheck;
	}
	public void setShowcheck(Boolean showcheck) {
		this.showcheck = showcheck;
	}
	public Boolean getComplete() {
		return complete;
	}
	public void setComplete(Boolean complete) {
		this.complete = complete;
	}
	public Boolean getIsexpand() {
		return isexpand;
	}
	public void setIsexpand(Boolean isexpand) {
		this.isexpand = isexpand;
	}
	public int getCheckstate() {
		return checkstate;
	}
	public void setCheckstate(int checkstate) {
		this.checkstate = checkstate;
	}
	public Boolean getHasChildren() {
		return hasChildren;
	}
	public void setHasChildren(Boolean hasChildren) {
		this.hasChildren = hasChildren;
	}
	public List<TreeNode> getChildNodes() {
		return ChildNodes;
	}
	public void setChildNodes(List<TreeNode> childNodes) {
		ChildNodes = childNodes;
	}
	
}
